package com.mzj.saas.commons.enums;

/**
 * 合同回调状态
 */
public enum ContractCallbackStatusEnum {

    /**
     * 初稿
     */
	DRAFT("DRAFT","草稿"),
    /**
     * 已撤回
     */
	RECALLED("RECALLED","已撤回"),
    /**
     * 签署中
     */
	SIGNING("SIGNING","签署中"),
    /**
     * 已退回
     */
	REJECTED("REJECTED","已退回"),
    /**
     * 已完成
     */
	COMPLETE("COMPLETE","已完成"),
    /**
     * 已过期
     */
	EXPIRED("EXPIRED","已过期"),
    /**
     * 拟定中
     */
	FILLING("FILLING","拟定中"),
    /**
     * 签署失败
     */
	FAILED("FAILED","签署失败"),
    /**
     * 作废中
     */
	INVALIDING("INVALIDING","作废中"),
    /**
     * 已作废
     */
	INVALIDED("INVALIDED","已作废");

    private String value;
    
    private String msg;

    ContractCallbackStatusEnum(String value,String msg) {
        this.value = value;
        this.msg = msg;
    }

    public String getValue() {
        return value;
    }
    
	public String getMsg() {
		return msg;
	}

	public static String operate(String value) {
        for(ContractCallbackStatusEnum s : values()) { 
            if(s.value.equals(value)) {
            	return s.msg;
            }
        }
        return "未知";
    }
    
}
